package cn.seaboot.admin.msg.bean;


import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * POJO
 * 消息模版参数 [t_sys_msg_props]
 * @author Mr.css on 2018-6-20
 */
@Schema(description = "消息模版参数 [t_sys_msg_props] 实体类")
public class MessageProperty implements Serializable {

    private static final long serialVersionUID = -3758277668172466765L;
    /**
     * ID
     */
    @NotNull
    @Size(max = 32)
    @Schema(description = "ID")
    private String id;
    /**
     * 消息ID
     */
    @Size(max = 32)
    @Schema(description = "消息ID")
    private String msgId;
    /**
     * 名称
     */
    @Size(max = 32)
    @Schema(description = "名称")
    private String name;
    /**
     * 标签
     */
    @Size(max = 32)
    @Schema(description = "标签")
    private String label;
    /**
     * 值
     */
    @Size(max = 32)
    @Schema(description = "值")
    private String value;
    /**
     * 是否必填
     */
    @Schema(description = "是否必填")
    private Boolean require;
    /**
     * 长度限制
     */
    @Schema(description = "长度限制")
    private Integer length;
    /**
     * 数据来源
     */
    @Size(max = 16)
    @Schema(description = "数据来源")
    private String source;
    /**
     * 描述
     */
    @Size(max = 128)
    @Schema(description = "描述")
    private String description;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMsgId() {
        return msgId;
    }

    public void setMsgId(String msgId) {
        this.msgId = msgId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    public Boolean getRequire() {
        return require;
    }

    public void setRequire(Boolean require) {
        this.require = require;
    }

    public Integer getLength() {
        return length;
    }

    public void setLength(Integer length) {
        this.length = length;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
